#!/bin/bash

declare -A roles
for constant in $APP_ROLE
do
    roles[$constant]=1
done

if [[ ${roles["queue_daemon"]} ]]; then
  sudo -u www-data /var/www/artisan queue:work --tries=1 redis &
fi
